import logging


def get_logger():
    file_handler = logging.FileHandler(filename='x1.log', mode='a', encoding='utf-8')
    logging.basicConfig(
        format='%(asctime)s - %(name)s - %(levelname)s - (module)s: %(message)s',
        datefmt='%Y-%m-%d %H:%M-%S %p',
        handlers=[file_handler, ],
        level=logging.ERROR,
        )
    return logging

logger = get_logger()